package cn.spream.jstudy.reflect;

/**
 * Created by IntelliJ IDEA.
 * User: cn.spream
 * Date: 12-8-10
 * Time: 下午4:50
 * To change this template use File | Settings | File Templates.
 */
public class Person1 {

    private String name;
    private int age;

    public Person1() {
    }

    public Person1(String name) {
        this.name = name;
    }

    public Person1(int age) {
        this.age = age;
    }

    public Person1(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Person1{" +
                "name='" + name + '\'' +
                ", age='" + age + '\'' +
                '}';
    }
}
